﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
    xmlns:clr="clr-namespace:intelliSys.Management.Automation.Test"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
x:Class="intelliSys.Management.Automation.Test.UnhandledException"
	x:Name="Window"
	Title="UNHANDLED"
	Width="800" Height="400" WindowStyle="None" Background="#00000000" Foreground="{x:Null}" AllowsTransparency="True" ResizeMode="NoResize" Topmost="True" WindowStartupLocation="CenterScreen" FontFamily="Segoe UI Light">
    <Window.Resources>
        <Storyboard x:Key="DropTears" RepeatBehavior="Forever">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Summary_Copy">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0.6"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.6" Value="0.6">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseIn"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="0">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <ExponentialEase EasingMode="EaseIn" Exponent="5"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="Summary_Copy">
                <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.6" Value="4.9">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseIn"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Summary_Copy">
                <EasingDoubleKeyFrame KeyTime="0:0:1.6" Value="0">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseIn"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="300">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <ExponentialEase EasingMode="EaseIn" Exponent="5"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="turnFace">
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Happy">
        		<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
        	</DoubleAnimationUsingKeyFrames>
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="NoEmotion">
        		<EasingDoubleKeyFrame KeyTime="0:0:1.6" Value="0"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:2.6" Value="1"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:3.6" Value="0"/>
        	</DoubleAnimationUsingKeyFrames>
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Sad">
        		<EasingDoubleKeyFrame KeyTime="0:0:2.6" Value="0"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:3.6" Value="1"/>
        	</DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="FadeAway">
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(BlurEffect.Radius)" Storyboard.TargetName="Window">
        		<EasingDoubleKeyFrame KeyTime="0" Value="30"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
        	</DoubleAnimationUsingKeyFrames>
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Window">
        		<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
        	</DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>
	<Window.Effect>
		<BlurEffect/>
	</Window.Effect>
    <Window.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
        	<BeginStoryboard x:Name="FadeAway_BeginStoryboard" Storyboard="{StaticResource FadeAway}"/>
        	<BeginStoryboard x:Name="DropTears_BeginStoryboard" Storyboard="{StaticResource DropTears}"/>
        	<BeginStoryboard x:Name="turnFace_BeginStoryboard" Storyboard="{StaticResource turnFace}"/>
        </EventTrigger>
    </Window.Triggers>

    <Grid Margin="0">
        <Grid.OpacityMask>
            <RadialGradientBrush RadiusY="0.972" Center="0.51,0.614" GradientOrigin="0.51,0.614" RadiusX="0.639">
                <GradientStop Color="Black" Offset="0"/>
                <GradientStop Offset="1" Color="#F2FFFFFF"/>
            </RadialGradientBrush>
        </Grid.OpacityMask>

        <Border x:Name="border" CornerRadius="10" Opacity="0" Background="Black"/>

        <Border CornerRadius="10" Margin="5,1,0,0" BorderBrush="#FF3995FF" BorderThickness="1" Opacity="1">
            <Border.Background>
                <RadialGradientBrush Center="0.496,0.723" GradientOrigin="0.496,0.723" RadiusX="0.676" RadiusY="0.743">
                    <GradientStop Color="#FF509EFD"/>
                    <GradientStop Color="#FF081629" Offset="1"/>
                </RadialGradientBrush>
            </Border.Background>

            <Grid x:Name="LayoutRoot" Margin="0">
                <TextBlock x:Name="Content" Margin="62,174.369,62,69.917" TextWrapping="Wrap" FontSize="13.333" Foreground="White"><Run FontSize="26.667" Language="zh-cn" Text="Your Application ran into a problem that it couldn't handle, "/><LineBreak/><Run FontSize="26.667" Language="zh-cn" Text="and now it needs to restart."/><LineBreak/><Run Language="zh-cn"/><LineBreak/><Run Language="zh-cn" Text="You can search for the Exception, or use the dispatch code below, or kindly              about this exception."/><LineBreak/><Run FontSize="8" Language="zh-cn"/><LineBreak/></TextBlock>
                <Path Data="M3.5,3.5 L136.5,3.5 L136.5,102.202 L3.5,102.202 z" HorizontalAlignment="Left" Height="105.702" Margin="38,-2,0,0" Stretch="Fill" StrokeThickness="7" VerticalAlignment="Top" Width="140">
                    <Path.OpacityMask>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="Black" Offset="0"/>
                            <GradientStop Offset="0.057"/>
                        </LinearGradientBrush>
                    </Path.OpacityMask>
                    <Path.Stroke>
                        <LinearGradientBrush EndPoint="0.017,0.498" StartPoint="1.05,0.514">
                            <GradientStop Color="#00104F8E" Offset="0"/>
                            <GradientStop Offset="1"/>
                            <GradientStop Color="White" Offset="0.505"/>
                            <GradientStop Color="#0033679D" Offset="0.992"/>
                        </LinearGradientBrush>
                    </Path.Stroke>
                </Path>
                <ProgressBar x:Name="progressBar" Margin="34,131,34,114" Style="{DynamicResource PerformanceProgressBar}" IsIndeterminate="True" Visibility="Hidden">
                    <ProgressBar.Foreground>
                        <SolidColorBrush Color="{DynamicResource MouseOverClr}"/>
                    </ProgressBar.Foreground>
                </ProgressBar>
                <TextBlock x:Name="CountDown" HorizontalAlignment="Left" Height="34.833" Margin="198.25,0,0,69.917" TextWrapping="Wrap" VerticalAlignment="Bottom" Width="51.333" FontSize="26.667" Foreground="White" TextAlignment="Center"><Run Language="zh-cn" Text="30"/></TextBlock>
                <Grid x:Name="grid" HorizontalAlignment="Left" Height="82.5" Margin="68.891,58.374,0,0" VerticalAlignment="Top" Width="65.451">
                	<Path x:Name="Summary_Copy" Data="M2.4999999,1.5777218E-30 C3.2083329,1.5777218E-30 3.8124998,0.234375 4.3124998,0.703125 C4.8124998,1.171875 5.0624998,1.7708359 5.0624998,2.5 C5.0624998,3.2083359 4.8124998,3.8072891 4.3124998,4.296875 C3.8124998,4.7864609 3.2083329,5.03125 2.4999999,5.03125 C1.7916664,5.03125 1.1979165,4.7864609 0.71874997,4.296875 C0.239583,3.8072891 0,3.2083359 0,2.5 C0,1.7708359 0.239583,1.171875 0.71874997,0.703125 C1.1979165,0.234375 1.7916664,1.5777218E-30 2.4999999,1.5777218E-30 z" Fill="White" HorizontalAlignment="Left" Height="2.5" Margin="2.745,0,0,13.874" RenderTransformOrigin="0.5,0" Stretch="Fill" VerticalAlignment="Bottom" Width="2.5" StrokeThickness="0">
                		<Path.RenderTransform>
                			<TransformGroup>
                				<ScaleTransform/>
                				<SkewTransform/>
                				<RotateTransform/>
                				<TranslateTransform/>
                			</TransformGroup>
                		</Path.RenderTransform>
                	</Path>
                	<Path Data="M3.7499381,0 C4.8124196,0 5.7186546,0.3515625 6.4686432,1.0546875 C7.2186299,1.7578125 7.5936237,2.65625 7.5936246,3.75 C7.5936237,4.8125 7.2186299,5.7109375 6.4686432,6.4453125 C5.7186546,7.1796875 4.8124196,7.546875 3.7499381,7.546875 C2.6874556,7.546875 1.7968453,7.1796875 1.0781077,6.4453125 C0.35936859,5.7109375 -4.7682881E-07,4.8125 4.7451051E-13,3.75 C-4.7682881E-07,2.65625 0.35936859,1.7578125 1.0781077,1.0546875 C1.7968453,0.3515625 2.6874556,0 3.7499381,0 z" Fill="White" HorizontalAlignment="Left" Height="7.547" Margin="0,0,0,14.437" RenderTransformOrigin="2.6634843157465,-2.5527950310559" Stretch="Fill" VerticalAlignment="Bottom" Width="7.594">
                		<Path.RenderTransform>
                			<TransformGroup>
                				<ScaleTransform/>
                				<SkewTransform/>
                				<RotateTransform/>
                				<TranslateTransform/>
                			</TransformGroup>
                		</Path.RenderTransform>
                	</Path>
                	<Path Data="M3.7499381,7.1054274E-15 C4.8124196,3.8146973E-06 5.7186546,0.35156631 6.4686432,1.0546875 C7.2186299,1.7578125 7.5936237,2.640625 7.5936246,3.703125 C7.5936237,4.765625 7.2186299,5.671875 6.4686432,6.421875 C5.7186546,7.171875 4.8124196,7.546875 3.7499381,7.546875 C2.6874556,7.546875 1.7968453,7.171875 1.0781077,6.421875 C0.35936859,5.671875 -4.7682881E-07,4.765625 4.7451051E-13,3.703125 C-4.7682881E-07,2.640625 0.35936859,1.7578125 1.0781077,1.0546875 C1.7968453,0.35156631 2.6874556,3.8146973E-06 3.7499381,7.1054274E-15 z" Fill="White" HorizontalAlignment="Left" Height="7.547" Margin="0,18.375,0,0" RenderTransformOrigin="2.6634843157465,3.03105590062112" Stretch="Fill" VerticalAlignment="Top" Width="7.594">
                		<Path.RenderTransform>
                			<TransformGroup>
                				<ScaleTransform/>
                				<SkewTransform/>
                				<RotateTransform/>
                				<TranslateTransform/>
                			</TransformGroup>
                		</Path.RenderTransform>
                	</Path>
                	<Path x:Name="Sad" Data="M14.39039,0 L18.984064,0 C9.2029754,11.250004 4.3124311,25.109379 4.3124311,41.578125 C4.3124311,57.109375 9.1404764,70.75 18.796567,82.5 L14.202893,82.5 C4.7342991,71.4375 3.7975958E-07,57.828125 3.7975958E-07,41.671875 C3.7975958E-07,24.796879 4.7967981,10.906254 14.39039,0 z" Fill="White" Margin="21.467,0,25,0" RenderTransformOrigin="-0.0653935903697306,0.5" Stretch="Fill" Opacity="0">
                		<Path.RenderTransform>
                			<TransformGroup>
                				<ScaleTransform/>
                				<SkewTransform/>
                				<RotateTransform/>
                				<TranslateTransform/>
                			</TransformGroup>
                		</Path.RenderTransform>
                	</Path>
                	<Rectangle x:Name="NoEmotion" Fill="White" Margin="31.109,0,30.342,0" Opacity="0"/>
                	<Path x:Name="Happy" Data="M14.39039,0 L18.984064,0 C9.2029754,11.250004 4.3124311,25.109379 4.3124311,41.578125 C4.3124311,57.109375 9.1404764,70.75 18.796567,82.5 L14.202893,82.5 C4.7342991,71.4375 3.7975958E-07,57.828125 3.7975958E-07,41.671875 C3.7975958E-07,24.796879 4.7967981,10.906254 14.39039,0 z" Fill="White" HorizontalAlignment="Right" RenderTransformOrigin="-0.0653935903697306,0.5" Stretch="Fill" Width="18.984">
                		<Path.RenderTransform>
                			<TransformGroup>
                				<ScaleTransform ScaleY="1" ScaleX="-1"/>
                				<SkewTransform AngleY="0" AngleX="0"/>
                				<RotateTransform Angle="0"/>
                				<TranslateTransform/>
                			</TransformGroup>
                		</Path.RenderTransform>
                	</Path>
                </Grid>
                <Label  HorizontalAlignment="Right" Height="30.333" Margin="0,0,259.417,109.334" VerticalAlignment="Bottom" Width="50.666" FontSize="13.333" Foreground="White">
                    <Hyperlink Click="Hyperlink_Click" >
                        <TextBlock Text="mail us" Foreground="White" TextDecorations="Underline"/>
                    </Hyperlink>
                </Label>
                <TextBlock x:Name="CountdownContent" Margin="62,0,62,69.917" TextWrapping="Wrap" FontSize="26.667" Foreground="White" Height="34.833" VerticalAlignment="Bottom" HorizontalAlignment="Left"><Run Language="zh-cn" Text="It'll restart in        second(s)"/></TextBlock>
            </Grid>
        </Border>
    </Grid>
</Window>